package com.zhang.Service;

import com.zhang.pojo.User;
import org.springframework.stereotype.Service;


@Service
public class UserService {

    public User getUserById(Long id){
        if(id==1){
            User user = new User();
            user.setUsername("zhansans");
            user.setPassword("123456");
            return user;
        }
        return null;
    }
}
